<?php  $this->load->view('admin/contact/link_bar');?>
		<form method="post" action="<?php echo base_url()?>admin/contact/delete" class="form">
		
		<div class="box_function">
		<table width="747" border="0" cellpadding="0" cellspacing="0" class="listproduct" id="listproduct">
				<tr>
					<td class="tilte_list_pro">
						<input name="checkme" class="noborder" onclick="checkDelBoxes(this.form, 'categoryBox[]', this.checked)" type="checkbox">
					</td>
					<td class="tilte_list_pro">
						ID<br>
						<a href="#"><img src="<?php echo base_url()?>images/admin/down.gif" border="0"></a>
						<a href="#"><img src="<?php echo base_url()?>images/admin/up.gif" border="0"></a>
					</th>
					<td class="tilte_list_pro">
						Đến từ<br>

						<a href=""><img src="<?php echo base_url()?>/images/admin/down.gif" border="0"></a>
						<a href=""><img src="<?php echo base_url()?>images/admin/up_d.gif" border="0"></a>
					</td>
					<td class="tilte_list_pro">
						Tiêu đề
					</td>
					<td class="tilte_list_pro">
						Trạng thái
					</td>
					<td class="tilte_list_pro center" style="width: 100px;">
						Actions
					</td>
				</tr>
					<?php
					if(count($contacts)>0){
						for($i = 0; $i < count($contacts); $i++){
							$id = $contacts[$i]->id;
							$fullname = $contacts[$i]->fullname;
							$title = $contacts[$i]->title;
							$status = $contacts[$i]->status;
							if($status==0) $status = lang('not_read');
							elseif($status==1) $status = lang('read');
							if($status==2) $status = lang('answer');
                            if($i % 2 == 0) $css_class = 'row1';
                            else $css_class = 'row2';
						?>
					<tr onMouseOver="" class="<?php echo $css_class ?>">
					<td class="product center">
						<input name="categoryBox[]" value="<?php echo $id?>" class="noborder" type="checkbox"></td>
					<td class="product center" onclick="document.location = '#'">
					<?php echo $id?>
					</td>
	
					<td class="product" onclick="document.location = '#'">
					<?php echo $fullname?>
					</td>
					<td class="product" onclick="document.location = '#'">
					<?php echo $title?>
					</td>
					<td class="product center" onclick="document.location = '#'">
						<?php echo $status?>
					</td>
					<td class="product center">
						<a href="<?php echo base_url()?>admin/contact/detail/<?php echo $id?>">
							<img src="<?php echo base_url()?>/images/admin/details.gif" alt="View" title="View" border="0">
						</a>
						<a href="<?php echo base_url()?>admin/contact/edit/<?php echo $id?>">
							<img src="<?php echo base_url()?>images/admin/edit.gif" alt="Edit" title="Edit" border="0">
						</a>
	
						<a href="<?php echo base_url()?>admin/contact/delete/<?php echo $id?>" onclick="return confirm('Delete item #<?php echo $id?>?');">
						<img src="<?php echo base_url()?>images/admin/delete.gif" alt="Delete" title="Delete" border="0">
						</a>
					</td>
				</tr>
						<?php
						}
					}
					?>
			<tr>
				<td colspan="6">		
			<p>
			<input class="button" name="submitDelcategory" value="Delete selection" onclick="return confirm('Delete selected items?');" type="submit">
			</p>
			
		</td>
	</tr>
</table>
</div>
		</form>
		<div style="clear:both "></div>
		<?php echo $this->pagination->create_links();?>